﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="Forgot.aspx.cs" Inherits="VirtualOrg.Web.FormForgotUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
    function SendPassword() {
        if (jQuery('#form1').validationEngine('validate') == true) {
            var username = document.getElementById('<%=txtUsername.ClientID %>').value;
            var email = document.getElementById('<%=txtEmail.ClientID %>').value;

            ob_post.AddParam("username", username);
            ob_post.AddParam("email", email);

            ob_post.post(null, "SendPassword", SendPasswordResponse);
        }

        return false;
    }

    function SendPasswordResponse(result) {
        msgboxpanel.innerHTML = result;
    }
</script>
    <div id="main" class="ui-widget-content ui-corner-all" style="padding-left: 30px;">
        <h2>
            Retrive your lost password</h2>
        <hr />
        <table style="width: 100%; height: 150px;">
            <tr>
                <td>
                    <label for="author">
                        Username:</label>
                    <asp:TextBox ID="txtUsername" runat="server" CssClass="validate[required,minSize[6]] input_field ui-corner-all"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <label>
                        Email ID:</label>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="validate[required,custom[email]] input_field ui-corner-all"></asp:TextBox>
                </td>
            </tr>
        </table>
        <div class="cleaner h10">
        </div>
        <asp:Button ID="btnSendPassword" OnClientClick="return SendPassword();" runat="server" Text="Get Password" /><br /><br />
        <div class="cleaner">
        </div>
    </div>
</asp:Content>
